projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e087f43
)
widget-factory: Clean up on shutdown
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 13 Apr 2014 05:13:14 +0000
(22:13 -0700)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 13 Apr 2014 05:13:14 +0000
(22:13 -0700)
demos/widget-factory/widget-factory.c
patch
|
blob
|
history
diff --git
a/demos/widget-factory/widget-factory.c
b/demos/widget-factory/widget-factory.c
index 21ff514268d2413f3cc6e6c0914c4a07a29af777..937dc63e8814e1819d76d9626e9a1b7b08b3b1ab 100644
(file)
--- a/
demos/widget-factory/widget-factory.c
+++ b/
demos/widget-factory/widget-factory.c
@@
-287,8
+287,7
@@
main (int argc, char *argv[])
{ "about", activate_about, NULL, NULL, NULL },
{ "quit", activate_quit, NULL, NULL, NULL },
};
-
- gtk_init (&argc, &argv);
+ gint status;
app = gtk_application_new ("org.gtk.WidgetFactory", 0);
@@
-299,7
+298,8
@@
main (int argc, char *argv[])
g_signal_connect (app, "startup", G_CALLBACK (startup), NULL);
g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
- g_application_run (G_APPLICATION (app), argc, argv);
+ status = g_application_run (G_APPLICATION (app), argc, argv);
+ g_object_unref (app);
- return
0
;
+ return
status
;
}